Package com.netscape.cmscore.dbs
Class ReplicaIDRepository
java.lang.Object
com.netscape.cmscore.dbs.Repository
com.netscape.cmscore.dbs.ReplicaIDRepository
A class represents a replica repository. It
creates unique managed replica IDs.
- Version:
- $Revision$, $Date$
- Author:
- alee
-
Nested Class Summary
Nested classes/interfaces inherited from class com.netscape.cmscore.dbs.Repository
Repository.IDGenerator
-
Field Summary
FieldsFields inherited from class com.netscape.cmscore.dbs.Repository
dbSubsystem, DEC, engine, HEX, idGenerator, idLength, mBaseDN, mCounter, mIncrementNo, mLowWaterMarkNo, mMaxSerialNo, mMinSerialNo, mNextMaxSerialNo, mNextMinSerialNo, mRadix, rangeDN, repositoryConfig, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionReplicaIDRepository
(DBSubsystem dbSubsystem) Constructs a certificate repository. -
Method Summary
Modifier and TypeMethodDescriptiongetLastSerialNumberInRange
(BigInteger serial_low_bound, BigInteger serial_upper_bound) Returns last serial number in given rangevoid
init()
void
Sets maximum serial number limit in config filevoid
Sets minimum serial number limit in config filevoid
Sets maximum serial number limit for next range in config filevoid
Sets minimum serial number limit for next range in config fileMethods inherited from class com.netscape.cmscore.dbs.Repository
checkRange, checkRanges, getBaseDN, getCMSEngine, getIDGenerator, getMaxSerial, getMinSerial, getNextMaxSerial, getNextRange, getNextRangeDN, getNextSerialNumber, getNumbersInRange, getRadix, getRandomLimit, getRangeLength, hasRangeConflict, initCache, peekNextSerialNumber, setCMSEngine, setEnableSerialMgmt, setIDGenerator, setIDGenerator, setLastSerialNo, setMaxSerial, setNextMaxSerial, setTheSerialNumber
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
ReplicaIDRepository
Constructs a certificate repository.
-
-
Method Details
-
init
- Overrides:
init
in classRepository
- Throws:
Exception
-
setMinSerialConfig
Description copied from class:Repository
Sets minimum serial number limit in config file- Specified by:
setMinSerialConfig
in classRepository
- Throws:
EBaseException
- failed to set
-
setMaxSerialConfig
Description copied from class:Repository
Sets maximum serial number limit in config file- Specified by:
setMaxSerialConfig
in classRepository
- Throws:
EBaseException
- failed to set
-
setNextMinSerialConfig
Description copied from class:Repository
Sets minimum serial number limit for next range in config file- Specified by:
setNextMinSerialConfig
in classRepository
- Throws:
EBaseException
- failed to set
-
setNextMaxSerialConfig
Description copied from class:Repository
Sets maximum serial number limit for next range in config file- Specified by:
setNextMaxSerialConfig
in classRepository
- Throws:
EBaseException
- failed to set
-
getLastSerialNumberInRange
public BigInteger getLastSerialNumberInRange(BigInteger serial_low_bound, BigInteger serial_upper_bound) throws EBaseException Returns last serial number in given range- Specified by:
getLastSerialNumberInRange
in classRepository
- Throws:
EBaseException
-